<?php
	if (!empty($user)) {?>
	<h3><?=__('users.view.title')?></h3>
	<table>
		<tr>
			<th><?=__('users.id')?></th>
			<td><?=$user['User']['id']; ?></td>
		</tr>
		<tr>
			<th><?=__('users.username')?></th>
			<td><?=$user['User']['username']; ?></td>
		</tr>
		<tr>
			<th><?=__('users.firstName')?></th>
			<td><?=$user['User']['first_name']; ?></td>
		</tr>
		<tr>
			<th><?=__('users.lastName')?></th>
			<td><?=$user['User']['last_name']; ?></td>
		</tr>
		<tr>
			<th><?=__('users.email')?></th>
			<td><?=$user['User']['email']; ?></td>
		</tr>
		<tr>
			<th><?=__('users.dob')?></th>
			<td><?=!empty($user['User']['dob']) ? date('d-m-Y', strtotime($user['User']['dob'])) : '-' ?></td>
		</tr>
		<tr>
			<th><?=__('users.about')?></th>
			<td><?=$user['User']['about']; ?></td>
		</tr>
		<tr>
			<th><?=__('users.lastLogin')?></th>
			<td><?=!empty($user['User']['last_login']) ? date('d-m-Y', strtotime($user['User']['last_login'])) : '-' ?></td>
		</tr>
	</table>
	<p><a href="/users"><?=__('users.index.title')?></a></p>

<?php } else {?>

	<h3><?=__('users.view.noUser')?></h3>
<?php }?>